<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      #box {
        width: 400px;
        height: 400px;
        margin: 100px 0 0 100px;
        border: solid;
      }
    </style>
  </head>
  <body>
    <div id="box"></div>
    <script>
      const box = document.getElementById("box");

      box.addEventListener("click", function (e) {
        console.log(e);
        console.log(e.clientX, e.clientY);
        // console.log(e.type); //click
        // console.log(e.currentTarget); //box
        // console.log(this); //box
      });
    </script>
  </body>
</html>
